﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Text;
using System.Windows.Forms;
using System.Resources;
using System.Reflection;
using Fodee.Controls.Properties;

namespace Fodee.Controls
{
    public partial class Table : UserControl
    {
        public Table()
        {
            InitializeComponent();
        }       

        public string TableName
        {
            get { return this.labTableName.Text; }
            set { this.labTableName.Text = value; }
        }

        public Image TableImage
        {
            get { return this.picStatus.Image; }
            set { this.picStatus.Image = value; }
        }

        public string TableNumber
        {
            get { return this.labTableNumber.Text; }
            set { this.labTableNumber.Text = value; }
        }

        public string TableID
        {
            get { return this.labTableID.Text; }
            set { this.labTableID.Text = value; }
        }

        private string _custName;
        public string CustName
        {
            get { return _custName; }
            set { _custName = value; }
        }

        private string _status;
        public string Status
        {
            get { return _status; }
            set { _status = value; }
        }

        private string _headCount;
        public string HeadCount
        {
            get { return _headCount; }
            set { _headCount = value; }
        }

        private string _dateOpen;
        public string OpenDate
        {
            get { return _dateOpen; }
            set { _dateOpen = value; }
        }

        private string _waiter;
        public string Waiter
        {
            get { return _waiter; }
            set { _waiter = value; }
        }

        private string _remarks;
        public string Remarks
        {
            get { return _remarks; }
            set { _remarks = value; }
        }

        private int _statusID;
        public int StatusID
        {
            get { return _statusID; }
            set { _statusID = value; }
        }

        private int _index;
        public int Index
        {
            get { return _index; }
            set { _index = value; }
        }


        public bool IsMarked
        {
            get { return this.labMark.Visible; }
            set
            {
                if (value)
                {
                    this.labMark.Visible = true;
                }
                else
                {
                    this.labMark.Visible = false;
                }
            }
        }
    }
}
